7/21 EMA ADX Pro After many months (actually years) of intense research, countless hours of testing different approaches, and rigorous backtesting, I’ve finally developed this indicator/strategy based on moving average crossovers enhanced with power-based filtering to significantly reduce false signals and whipsaws. This is not just another basic MA crossover system. The core idea revolves around applying mathematical powers (exponents) to the moving averages and combining them with additional confirmation filters, creating a much more robust and reliable signal generation mechanism. I’m sharing it with the community in the hope that it can be useful to someone else who, like me, has spent endless nights trying to find an edge in the markets. Feel free to test it, modify it, or improve it. Feedback, suggestions, and constructive criticism are always welcome. If you find it helpful, a simple like or comment would mean a lot — it’s the result of a huge amount of work and passion. Happy trading! (Full Pine Script code will be posted below or in the next update — stay tuned!
Поиск скриптов по запросу "ma cross"
Four Moving AveragesOverview
This customizable indicator displays up to four moving averages simultaneously on your chart, giving traders complete flexibility to monitor multiple trends and timeframes at once. Each moving average is independently configurable, allowing you to create your perfect combination of trend indicators.
How It Works
The indicator calculates and plots four separate moving averages based on your specifications. Each moving average can be customized independently, allowing you to mix different types, lengths, and timeframes. For example, you could display a 20-period EMA on the current timeframe alongside a 200-period SMA from a daily chart, all while viewing an intraday chart.
Key Features
Multiple MA Types Supported:
SMA (Simple Moving Average) - Equal weight to all periods
EMA (Exponential Moving Average) - More weight to recent prices
WMA (Weighted Moving Average) - Linear weighting
RMA (Rolling Moving Average) - Also known as Smoothed MA
HMA (Hull Moving Average) - Reduced lag with smooth curve
VWMA (Volume Weighted Moving Average) - Incorporates volume data
Fully Customizable Parameters for Each MA:
Length: Set any period from 1 to infinity (common: 20, 50, 100, 200)
Source: Choose from Close, Open, High, Low, HL2, HLC3, OHLC4, and more
Timeframe: Display MAs from any timeframe regardless of your chart timeframe
Offset: Shift the MA forward or backward on the chart
Enable/Disable: Toggle each MA on or off without losing settings
Visual Customization:
Custom Colors: Choose any color for each MA line
Line Styles: Select from Solid, Dashed, or Dotted lines
Line Width: Adjust thickness from 1 to 4 for better visibility
Organized Settings: Each MA has its own settings group for easy configuration
Default Configuration
Out of the box, the indicator comes with these preset values:
MA1: 20-period SMA (Blue) - Short-term trend
MA2: 50-period SMA (Red) - Medium-term trend
MA3: 100-period SMA (Green) - Longer-term trend
MA4: 200-period SMA (Orange) - Long-term trend/support-resistance
Use Cases
Trend Identification: Use multiple timeframes to confirm trend direction
Support/Resistance: Moving averages often act as dynamic support and resistance levels
Crossover Strategies: Identify when faster MAs cross slower MAs for potential signals
Multi-Timeframe Analysis: Display daily MAs on an hourly chart for broader context
Custom Setups: Create your own unique combination of MAs that fit your trading style
ZynAlgo Trend MiniZynAlgo Trend Mini — Multi-Timeframe Trend Scanner & Compact Table UI
What this indicator does
ZynAlgo Trend Dashboard Mini scans up to five user-selected timeframes and summarizes the trend state for each, using one of three signal modes: MA Cross, Price vs MA, or RSI. It then aggregates these per-timeframe signals into an Overall Trend line and optionally shows a score count (bull/bear/neutral). A compact table dashboard renders in the corner you choose, with multiple themes or fully custom colors.
How it works (conceptual)
1) Per-timeframe signal
Choose a Signal Mode for classification:
MA Cross — compares fast vs. slow MA. If % distance exceeds Neutral Zone %, it’s Bullish/Bearish; otherwise Neutral.
Price vs MA — compares price to a single MA; % deviation beyond Neutral Zone is Bullish/Bearish; within it is Neutral.
RSI — RSI above Bullish Level ⇒ Bullish; below Bearish Level ⇒ Bearish; between the two ⇒ Neutral.
Supported MA types: EMA/SMA/HMA/WMA; lengths and thresholds are user-defined.
2) Multi-timeframe aggregation
The script counts Bullish/Bearish/Neutral outcomes across enabled TFs, then sets Overall Trend by majority (ties → Neutral). Optional score text shows the counts.
3) Dashboard rendering
Three display modes: Detailed, Compact, Minimal. You can position the panel in common corners/center and toggle title, overall row, and score.
Inputs (with tooltip-style guidance)
⏰ Timeframes
Enable Timeframe 1–5 / Timeframe 1–5 — turn on specific TFs (e.g., 5 / 15 / 60 / 240 / D). Tip: “Only enabled TFs are counted in the overall trend.”
📊 Signal Settings
Signal Mode (MA Cross / Price vs MA / RSI) — “Pick how each TF is classified.”
MA Type / Fast MA Length / Slow MA Length — “Used by MA Cross and Price vs MA; shorter fast MA reacts quicker; longer slow MA smooths noise.”
RSI Length / Bullish Level / Bearish Level — “Used by RSI mode; levels define bullish/bearish thresholds.”
Neutral Zone % — “Dead-band around 0% for MA-based modes; inside the band = Neutral.”
🎨 Display
Display Mode (Detailed / Compact / Minimal) — “Switch between full rows, condensed line, or icon-only view.”
Position — “Choose a chart corner/center for the panel.”
Show Overall Trend / Show Score Count / Show Dashboard Title — “Toggle the overall line, counts, and title.”
📝 Text & Size
Dashboard Title / Text Size / Timeframe Text Size — “Set panel title and font sizes independently.”
🎨 Theme & Colors
Color Theme — presets: Dark Neon / Dark Professional / Light Modern / Light Classic / Cyberpunk / Matrix / Custom. Tip: “Pick a preset; choose Custom to define every color.”
Custom Colors (active when Theme=Custom) — border/background/header/row/text/title/TF label and bull/bear/neutral colors.
🧱 Border & Background
Border Width — “0 hides the frame; higher values increase panel emphasis.”
Alternate Row — “Subtle row striping for readability.” (enabled in code)
🔔 Alerts
Enable Alerts — “Master on/off for the four prebuilt alerts.”
Using the indicator (suggested workflow)
Choose timeframes (e.g., M5/M15/H1/H4/D1). Disable any you don’t want counted.
Select a signal model that fits your playbook (MA Cross, Price vs MA, or RSI), then set MA/RSI lengths and the Neutral Zone %.
Pick a display mode & position. Toggle Overall Trend, Score Count, and Title as needed.
Style with a theme (or Custom colors) for readability on your chart background.
(Optional) Alerts: enable and then create alerts for unanimous or majority trends (see list below).
Reading the dashboard
Per-TF cells/icons: color and text show the state (BULLISH / BEARISH / NEUTRAL).
Overall Trend row: majority summary with ▲ / ▼ / ● icon; optional score shows counts (Bull/Bear/Neutral).
Built-in alert conditions
All Timeframes Bullish — every enabled TF is Bullish (requires ≥3 enabled).
All Timeframes Bearish — every enabled TF is Bearish (requires ≥3 enabled).
Majority Bullish — majority Bullish and Overall Trend = Bullish.
Majority Bearish — majority Bearish and Overall Trend = Bearish.
Hidden plots for Overall/Bull/Bear counts are available for alert logic/custom uses.
Three interchangeable models in one panel (MA Cross, Price-Deviation, RSI) → one UI, multiple perspectives.
Flexible aggregation that adapts to enabled TFs only (disabled TFs are excluded cleanly).
Compact, themeable UI with Detailed/Compact/Minimal layouts and corner/center anchoring — designed for clarity on busy charts.
Bar-confirmed calculations via request.security (no forward-looking values used in the logic described).
Lightweight implementation (table rendering and per-bar updates gated on barstate.islast) to minimize overhead in common workflows.
🔶 RISK DISCLAIMER
Trading is risky & most day traders lose money. All content, tools, scripts, articles, & education provided by ZynAlgo are purely for informational & educational purposes only. Past performance does not guarantee future results.
ZynAlgo TrendlinePurpose
ZynAlgo Trendline V2.0 is a trend-following indicator designed to help traders visually identify market direction, momentum alignment, and dynamic risk zones.
It combines multiple moving averages, multi-timeframe analysis, and slope validation to show when a market is trending, ranging, or reversing.
How It Works — Conceptual Breakdown
🔹 1. Trendline Framework (Three-Layer MA System)
The indicator plots three moving-average layers:
Type 1 Line – Fast MA for early trend detection
Type 2 Line – Medium MA as a stability filter
Trendline (200-period) – Long-term structural baseline
When all three are properly stacked and sloped, a directional bias is confirmed:
Bullish → Type 1 > Type 2 > Trendline
Bearish → Type 1 < Type 2 < Trendline
Sideways → Misaligned or flat
Users can select from SMA, EMA, WMA, RMA, SWMA, ALMA, VWAP, fully adjustable to match their style.
🔹 2. Touch-and-Confirm Entry Logic
Entries are visualized only when:
Price touches the selected confirmation line (Trendline, Type 1 or Type 2), and
The direction is re-confirmed within a given number of candles (confirmation window).
You can choose between:
Fixed Mode — confirmation only on the exact N-th candle after touch.
Interval Mode — confirmation allowed anytime within N candles after touch.
This method ensures signals only appear when structure and timing both align — reducing false momentum entries.
🔹 3. Multi-Timeframe Trend Filter (MTF Filter)
The indicator checks trend direction across up to 8 higher timeframes (5 min → Daily).
A signal is valid only if a chosen minimum number of those timeframes confirm the same direction.
This feature creates cross-timeframe confluence, helping users avoid counter-trend setups.
🔹 4. Slope-Based Market Filter
To prevent entries in sideways or choppy markets, the system verifies:
Each MA’s slope is above a user-defined threshold.
MAs are sufficiently spaced apart (using percentage-of-price separation).
When conditions are met, candles are color-coded:
🟩 Uptrend 🟥 Downtrend ⬜ Sideways/No-trade zone.
This gives immediate visual feedback about current market structure.
🔹 5. Dynamic Risk Management System
Choose among three Stop-Loss modes:
Structure-Based – Swing high/low referencing market structure.
MA-Based – Uses the selected moving-average line as a dynamic stop.
ATR-Based – Volatility-adaptive stop (default).
Each entry automatically projects up to three Take-Profit (TP1-TP3) levels using user-defined Risk-to-Reward ratios.
Lines and labels are plotted for Entry, SL, and each TP with optional persistence control (“keep old lines” setting).
🔹 6. Anti-Martingale / Cooldown Logic
A built-in cooldown timer ensures only one trade setup per cycle — new signals pause until the prior trade has reached either TP or SL.
This mechanism prevents overlapping trades and unwanted martingale-style stacking.
🔹 7. Compact On-Chart Dashboard
A small table (top-right corner) summarizes:
Current position (LONG / SHORT / FLAT)
SL mode in use
Confirmation source
Touch/confirmation mode
Cooldown state and remaining bars
This helps monitor settings without opening the menu.
🔹 8. Smart Alerts (Telegram / Discord / Both)
When a new BUY ↗ or SELL ↘ confirmation occurs, the script can send structured alerts containing:
Symbol
Entry price
TP1 – TP3 values
Stop Loss
Timestamp
You can select the preferred platform (Telegram / Discord / Both).
These alerts are optional and serve as notifications, not trade instructions.
Usage Guide
Trendline Length: Period of the main long-term moving average (default = 200). Higher = smoother, slower trendline.
Trendline Type / Type 1 / Type 2 Type: Choose from SMA, EMA, WMA, RMA, SWMA, ALMA, VWAP depending on your preference for responsiveness or smoothness.
Confirmation Source: Which MA must be touched by price to start a confirmation window (Trendline = conservative, Type 1 = frequent, Type 2 = balanced).
Confirmation Window: Number of bars allowed for price to confirm direction after touch.
Stop Loss Mode: Select ATR-based, structure-based, or MA-based stop visualization.
R:R Ratios (TP1-TP3) Adjust distances for visual target levels based on risk-to-reward multiples.
Enable MTF Filter: Require trend alignment across higher timeframes before showing a signal.
Enable Slope Filter: Prevents signals when MAs are flat or overlapping (sideways market).
Enable Candle Coloring: Colors candles by trend state for quick visual confirmation.
How to Use
Apply the indicator to a clean chart with no other overlays for clarity.
Check candle color:
Green → Uptrend; Red → Downtrend; Gray → Sideways.
Wait for a “BUY ↗” or “SELL ↘” label to appear after a valid touch + confirmation sequence.
Observe drawn lines: Entry = blue, SL = red, TP = green.
Use displayed levels as visual references only. You may combine them with your own entry rules or strategy.
Optional: enable the dashboard (top-right) to monitor trend filter states and settings in real time.
⛔ False-Signal Reduction
Combining slope validation with multi-timeframe agreement filters out low-probability entries — useful for traders who prefer quality over quantity.
🧩 Professional Execution Layer
Integrated Stop Loss / Take Profit projection, cooldown logic, and anti-martingale control give it a disciplined, rule-based behavior — a hallmark of algorithmic consistency.
📡 Automation-Ready Alerts
The built-in Telegram / Discord alert module (JSON-formatted payloads) allows direct bot integration for remote monitoring — no additional coding required.
Unlike public MA crossover scripts, ZynAlgo Trendline includes proprietary logic for slope-weighted alignment, MTF aggregation, and confirmation-window entry detection.
🔶 RISK DISCLAIMER
Trading is risky & most day traders lose money. All content, tools, scripts, articles, & education provided by ZynAlgo are purely for informational & educational purposes only. Past performance does not guarantee future results.
Multi MA Tools Pro**📈 MT MA Pro - Multi Moving Average Tools Pro**
**🔧 HOW TO USE:**
**🎯 BASIC SETUP:**
1. **Apply indicator** to any chart
2. **Enable/Disable** each MA type using toggle switches
3. **Customize lengths** (5, 10, 20, 50, 100, etc.)
4. **Set colors** for better visual distinction
5. **Choose timeframes** for multi-timeframe analysis
**📊 MOVING AVERAGE TYPES:**
- **SMA** - Simple Moving Average (Trend direction)
- **EMA** - Exponential Moving Average (Faster signals)
- **WMA** - Weighted Moving Average (Recent price emphasis)
- **ZLEMA** - Zero Lag EMA (Reduced lag)
- **RMA** - Running Moving Average (Smoother trends)
- **VWMA** - Volume Weighted MA (Price-volume correlation)
**🚨 5-8-13 STRATEGY ALERT SYSTEM:**
- **Real-time status** for SMA & EMA separately
- **Color-coded signals** for quick decision making
- **Action recommendations** based on price position
**🎨 CUSTOMIZATION OPTIONS:**
- Adjustable line widths and styles
- Multiple color schemes
- Flexible timeframe settings
- Individual MA visibility control
**⚡ TRADING STRATEGIES:**
- **Trend Identification** - Multiple MA crossovers
- **Support/Resistance** - MA clusters as dynamic levels
- **Multi-timeframe Analysis** - Higher timeframe context
- **Volume Confirmation** - VWMA for validation
**📱 IDEAL FOR:**
- Swing traders (4H, Daily timeframes)
- Day traders (15M, 1H timeframes)
- Position traders (Weekly, Monthly)
- All market types (Stocks, Crypto, Forex)
**🔍 PRO TIPS:**
- Combine with other indicators for confirmation
- Use alerts for key crossovers
- Adjust lengths based on market volatility
- Test different MA combinations
**⚠️ RISK DISCLAIMER:**
This indicator is for educational purposes only. Always use proper risk management and combine with other analysis tools. Past performance doesn't guarantee future results.
**📞 SUPPORT:**
For questions or suggestions, please refer to the indicator documentation or contact the developer.
---
*Master your trends with MT MA Pro!* 🚀
Composite Sentiment Indicator (SPY/QQQ/SOXX + VixFix)# Multi-Index Composite Sentiment Indicator
A comprehensive sentiment indicator that works across SPY, QQQ, SOXX, and custom symbols. Combines volatility, options flow, macro factors, technicals, and seasonality into a single z-score composite.
## What It Does
Takes multiple market sentiment inputs (VIX, put/call ratios, breadth, yields, etc.) and smooshes them into one normalized line. When the composite is high = markets getting spooked. When it's low = markets getting complacent.
## Key Features
- **Multi-Index Support**: Automatically adapts for SPY (uses VIX), QQQ (uses VXN), SOXX (uses VixFix), or custom symbols
- **VixFix Integration**: Larry Williams' VixFix for indices without dedicated VIX measures
- **Signal MA**: Choose from SMA/EMA/WMA/HMA/TEMA/DEMA with color coding (red above MA = risk-on, green below = risk-off)
- **September Focus**: Built-in seasonality weighting for September weakness patterns
- **Comprehensive Components**: Volatility, options sentiment, macro factors, technicals, and sector-specific metrics
## How to Use
**Basic Setup:**
1. Pick your index (SPY/QQQ/SOXX)
2. Choose signal MA type and length (EMA 21 is a good start)
3. Watch for extreme readings and MA crossovers
**Color Signals:**
- Red composite = above signal MA = bearish sentiment
- Green composite = below signal MA = bullish sentiment
- Extreme high readings (red background) = potential tops
- Extreme low readings (green background) = potential bottoms
**For Different Indices:**
- **QQQ**: Uses NASDAQ VIX (VXN) when available, falls back to VixFix
- **SOXX**: Includes semiconductor cycle indicators, uses VixFix for volatility
- **Custom**: Adapts automatically, relies on VixFix and general market metrics
## Components Included
**Volatility**: VIX/VXN/VixFix, term structure, historical vol
**Options**: Put/call ratios, SKEW index
**Macro**: DXY, 10Y yields, yield curve, TIPS spreads
**Technical**: RSI deviation, momentum
**Seasonality**: September effects, quad witching, month-end patterns
**Breadth**: S&P 500 and NASDAQ breadth measures
## Pro Tips
- Works well on Daily Timeframe
- September gets extra weight automatically - watch for August setup signals
- Keltner envelope breaks often mark sentiment exhaustion points
- Use alerts for extreme readings and MA crossovers
Works best when you understand that sentiment extremes often mark turning points, not continuation signals. High readings don't mean "keep shorting" - they mean "start looking for reversal setups."
## Settings Worth Tweaking
- Signal MA type/length for your timeframe
- Component weights based on what matters for your index
- Envelope multipliers for your risk tolerance
- VixFix parameters if default doesn't fit your symbol's volatility
The table shows all current component readings so you can see what's driving the signal. Good for context and debugging weird readings.
SMI Base-Trigger Bullish Re-acceleration (Higher High)Description
What it does
This indicator highlights a two-step bullish pattern using Stochastic Momentum Index (SMI) plus an ATR distance filter:
1. Base (orange) – Marks a momentum “reset.” A base prints when SMI %K crosses up through %D while %K is below the Base level (default -70). The base stores the base price and starts a waiting window.
2. Trigger (green) – Confirms momentum and price strength. A trigger prints only if, before the timeout window ends:
• SMI %K crosses up through %D again,
• %K is above the Trigger level (default -60),
• Close > Base Price, and
• Price has advanced at least Min ATR multiple (default 1.0× the 14-period ATR) above the base price.
A dashed green line connects the base to the trigger.
Why it’s useful
It seeks a bullish divergence / reacceleration: momentum recovers from deeply negative territory, then price reclaims and exceeds the base by a volatility-aware margin. This helps filter out weak “oversold bounces.”
Signals
• Base ▲ (orange): Potential setup begins.
• Trigger ▲ (green): Confirmation—momentum and price agree.
Inputs (key ones)
• %K Length / EMA Smoothing / %D Length: SMI construction.
• Base when %K < (default -70): depth required for a valid reset.
• Trigger when %K > (default -60): strength required on confirmation.
• Base timeout (days) (default 100): maximum look-ahead window.
• ATR Length (default 14) and Min ATR multiple (default 1.0): price must exceed the base by this ATR-scaled distance.
How traders use it (example rules)
• Entry: On the Trigger.
• Risk: A common approach is a stop somewhere between the base price and a multiple of ATR below trigger; or use your system’s volatility stop.
• Exits: Your choice—trend MA cross, fixed R multiple, or structure-based levels.
Notes & tips
• Works best on liquid symbols and mid-to-higher timeframes (reduce noise).
• Increase Min ATR multiple to demand stronger price confirmation; tighten or widen Base/Trigger levels to fit your market.
• This script plots signals only; convert to a strategy to backtest entries/exits.
Adaptive Multi-TF Indicator Table with Presets giua64📌 Script Name:
Adaptive Multi-Timeframe Indicator Table with Presets — giua64
📄 Description:
This script displays an adaptive multi-timeframe dashboard that summarizes the signals of three key technical indicators:
Moving Averages (MAs), Relative Strength Index (RSI), and MACD.
It provides a fast and visually intuitive overview of market conditions across five timeframes (5m, 15m, 30m, 1h, 4h), helping traders quickly identify potential directional biases (e.g., bullish, bearish, or neutral) based on either predefined presets or fully manual settings.
🧰 Preset Configurations:
You can choose between four trading styles, each with optimized indicator parameters:
Scalping
• MAs: 5 / 10 (Fast), 20 / 50 (Slow)
• RSI: 7 periods | Overbought: 70 | Oversold: 30
• MACD: 5 / 13 | Signal: 3
Intraday
• MAs: 9 / 21 (Fast), 50 / 100 (Slow)
• RSI: 14 periods | Overbought: 60 | Oversold: 40
• MACD: 12 / 26 | Signal: 9
Swing
• MAs: 10 / 20 (Fast), 50 / 200 (Slow)
• RSI: 14 periods | Overbought: 65 | Oversold: 35
• MACD: 12 / 26 | Signal: 9
Manual
• Full custom control over all indicator settings.
🛠️ All settings can be customized manually from the options panel, including the exact MA periods, RSI thresholds, and MACD structure.
🧠 How It Works:
For each timeframe, the script evaluates:
MA crossover status (two levels):
The first symbol refers to the crossover of the fast MAs
The second symbol refers to the crossover of the slow MAs
🟢 = Bullish crossover
🔴 = Bearish crossover
➖ = Flat or no clear signal
RSI Direction:
↑ = RSI above upper threshold (potential overbought)
↓ = RSI below lower threshold (potential oversold)
→ = RSI in neutral range
MACD Line vs Signal Line:
↑ = MACD line is above signal line (bullish)
↓ = MACD line is below signal line (bearish)
→ = Flat or neutral signal
Each signal is assigned a numerical score. These are aggregated per timeframe to compute a combined score that reflects the directional bias for that specific time window.
🧠 Adaptive Logic by Asset:
This script is designed to be universally compatible across all asset types — including forex, crypto, stocks, indices, and commodities.
Thanks to its multi-timeframe nature and flexible indicator presets, the script automatically adjusts its behavior based on the asset selected, ensuring relevant analysis without requiring manual recalibration.
🧾 Summary Table Output:
At the bottom of the dashboard, a combined sentiment is displayed for:
3TF → 5m, 15m, 30m
4TF → Adds 1h
5TF → Adds 4h
Each row shows:
Signal → LONG / SHORT / NEUTRAL
Confidence (%) → Based on score aggregation and signal consistency
📌 Customization Options:
Table Position: Left, Right, or Center
Text Size: Small, Normal, or Large
Full Manual Configuration: All MA, RSI, and MACD parameters can be adjusted as needed
⚠️ Disclaimer:
This script is for educational and analytical purposes only.
It does not constitute financial advice or guarantee any trading results.
Always do your own research and apply responsible risk management.
UM Dual MA with Price Bar Color change & Fill
Description
This is a dual moving average indicator with colored bars and moving averages. I wrote this indicator to keep myself on the right side of the market and trends. It plots two moving averages, (length and type of MA are user-defined) and colors the MAs green when trending higher or red when trending lower. The price bars are green when both MAs are green, red when both MAs are red, and orange when one MA is green and the other is red. The idea behind the indicator is to be extremely visual. If I am buying a red bar, I ask myself "why?" If I am selling a green bar, again, "why?"
Recommended Usage
Configure your tow favorite Moving averages. Consider long positions when one or both turn green. Scale into a position with a portion upon the first MA turning green, and then more when the second turns green. Consider scaling out when the bars are orange after an up move.
Orange bars are either areas of consolidation or prior to major turns.
You can also look for MA crossovers.
The indicator works on any timeframe and any security. I use it on daily, hourly, 2 day charts.
Default settings
The defaults are the author's preferred settings:
- 8 period WMA and 16 period WMA.
- Bars are green when both MAs are trending higher, red when both MAs are trending lower, and orange when one MA is trending higher and the other is trending lower.
Moving average types, lengths, and colors are user-configurable. Bar colors are also user-configurable.
Alerts
Alerts can be set by right-clicking the indicator and selecting the dropdown:
- Bullish Trend Both MAs turning green
- Bearish Trend Both MAs turning red
- Mixed Trend, 1 green 1 red MA
Helpful Hints:
Look for bullish areas when both MAs turn green after a sustained downtrend
Look for bearish areas when both MAs turn red
Careful in areas of orange bars, this could be a consolidation or a warning to a potential trend direction change.
Switch up your timeframes, I toggle back and forth between 1 and 2 days.
Stretch your timeframe over a lower time frame; for example, I like the 8 and 16 daily WMA. With most securities I get 16 bars with pre and post market. This translates into 128 and 256 MAs on the hourly chart. This slows down moves and color transitions for better manageability.
Author's Subjective Observations
I like the 128/256 WMA on the hourly charts for leveraged and inverse ETFs such as SPXL/SPXS, TQQQ/SQQQ, TNA/TZA. Or even the volatility ETFs/ETNS: UVXY, VXX.
Here is a one-hour chart example:
I have noticed that as volatility increases, I should begin looking at higher timeframes. This seems counterintuitive, but higher volatility increases the level of noise or swings.
I question myself when I short a green bar or buy a red bar; "Why am I doing this?" The colors help me visually stay on the right side of trend. If I am going to speculate on a market turn, at least do it when the bars are orange (MA trends differ)
My last observation is a 2-day chart of leveraged ETFs with the 8 and 16 WMAs. I frequently trade SPXL, FNGA, and TNA. If you are really dissecting this indicator,
look at a few 2-day charts. 2-day charts seem to catch the major swings nicely up and down. They also weed out the daily sudden big swings such as a panic move from economic data
or tweets. When both the MAs turn red on a 2-day chart the same day or same bar, beware; this could be a rough ride or short opportunity. I found weekly charts too long for my style but good
to review for direction. Less decisions on longer charts equate to less brain damage for myself.
These are just my thoughts, of course you do you and what suits your style best! Happy Trading.
LinReg Heikin Ashi CandlesLinear Regression Heikin Ashi Candles will dramatically change how the candlesticks on your chart will appear. This script creates Heikin Ashi candles from the existing candlesticks and then applies wickless Linear Regression candles as an overlay. The result is an ultra smoothed 'Renko-like' chart that remains time-based and responsive.
Key Features:
Heikin Ashi Base: Provides a smoother representation of price trends by filtering out noise.
Linear Regression Candles on Heikin Ashi: Plots Linear Regression lines as candles on the Heikin Ashi chart, potentially highlighting the immediate trend direction and momentum within the smoothed data. Wicks are intentionally removed for a clearer focus on the linear progression.
Tillson T3 Moving Averages: Includes fast and slow T3 Moving Averages with customizable length and alpha. These smoothed moving averages can help identify trend direction and potential crossover signals. Users can toggle their visibility.
Volatility Bands: Integrates Volatility Bands based on Average True Range (ATR) with customizable length, ATR type (RMA, SMA, EMA, WMA), and inner/outer multipliers. These bands help gauge price volatility and potential reversal zones. Users can toggle the visibility of the basis line.
Customizable Colors: Allows users to customize the colors of the Linear Regression Heikin Ashi bullish and bearish candles.
How to Use:
This is an overlay on your chart so you'll need to 'hide' the existing candlesticks on your chart.
This indicator can be used on any timeframe from seconds to days to quickly identify market trend, gauge volatility, and potentially find entry/exit points. Consider looking for confluence between the candle color/direction, T3 MA crossovers, and price interaction with the Volatility Bands.
Note: This indicator plots Linear Regression directly on Heikin Ashi candles, removing wicks for a focus on the linear trend within the smoothed data. Adjust the input parameters to suit your trading style and the specific market conditions.
HUGE CREDIT to ugurvu who originally created the Linear Regression Candles indicator that my indicator pulls code from.
XAUUSD Multi-Timeframe Trend AnalyzerOverview
The "XAUUSD Multi-Timeframe Trend Analyzer" is an advanced script designed to provide a comprehensive analysis of the XAUUSD (Gold/US Dollar) trend across multiple timeframes simultaneously. By combining several key technical indicators, this tool helps traders quickly assess the market direction and trend strength for M15, M30, H1, H4, and D1 timeframes.
Multi-Timeframe Analysis: Displays the trend direction and strength across M15, M30, H1, H4, and D1 timeframes, allowing for a complete overview in a single glance.
Comprehensive Indicator Blend: Utilizes six popular technical indicators to determine the trend—Moving Averages, RSI, MACD, Bollinger Bands, DMI, and Parabolic SAR.
Trend Strength Scoring: Provides a numerical trend strength score (from -6 to 6) based on the alignment of the indicators, with positive values indicating uptrends and negative values for downtrends.
Visual Table Display: Displays results in a color-coded table (green for uptrend, red for downtrend, yellow for neutral) with a strength score for each timeframe, helping traders quickly assess market conditions.
How It Works
This script calculates the overall trend and its strength for each selected timeframe by analyzing six widely-used technical indicators:
Moving Averages (MA): The script uses a Fast and a Slow Moving Average. When the Fast MA crosses above the Slow MA, it indicates an uptrend. When the Fast MA crosses below, it signals a downtrend.
Relative Strength Index (RSI): The RSI is used to assess momentum. An RSI value above 50 suggests bullish momentum, while a value below 50 suggests bearish momentum.
Moving Average Convergence Divergence (MACD): MACD measures momentum and trend direction. When the MACD line crosses above the signal line, it signals bullish momentum; when it crosses below, it signals bearish momentum.
Bollinger Bands: These measure price volatility. When the price is above the middle Bollinger Band, the script considers the trend to be bullish, and when it's below, bearish.
Directional Movement Index (DMI): The DMI compares positive directional movement (DI+) and negative directional movement (DI-). A stronger DI+ over DI- signals an uptrend and vice versa.
Parabolic SAR: This indicator is used for determining potential trend reversals and setting stop-loss levels. If the price is above the Parabolic SAR, it indicates an uptrend, and if below, a downtrend.
Trend Strength Calculation
The script calculates a trend strength score for each timeframe:
Each indicator adds or subtracts 1 to the score based on whether it aligns with an uptrend or a downtrend.
A score of 6 indicates a Strong Uptrend, with all indicators aligned bullishly.
A score of -6 indicates a Strong Downtrend, with all indicators aligned bearishly.
Intermediate scores (e.g., 2 or -2) indicate Weak Uptrend or Weak Downtrend, suggesting that not all indicators are in agreement.
A score between 1 and -1 indicates a Neutral trend, suggesting uncertainty in the market.
How to Use
Assess Trend Direction and Strength: The table provides an easy-to-read summary of the trend and its strength on different timeframes. Look for timeframes where the strength is high (either 6 for a strong uptrend or -6 for a strong downtrend) to confirm the market’s overall direction.
Use in Conjunction with Other Strategies: This indicator is designed to provide a comprehensive view of the market. Traders should combine it with other strategies, such as price action analysis or candlestick patterns, to further confirm their trades.
Trend Reversal or Continuation: A weak trend (e.g., a strength of 2 or -2) could signal a possible reversal or a trend that has lost momentum. Strong trends (with a strength of 6 or -6) indicate higher confidence in trend continuation.
Multiple Timeframe Confirmation: Look for alignment across multiple timeframes to confirm the strength and direction of the trend before entering trades. For example, if M15, M30, and H1 are all showing a strong uptrend, it suggests a higher probability of the trend continuing.
Customization Options
- Adjustable Indicators: Users can modify the length and parameters of the Moving Averages, RSI, MACD, Bollinger Bands, DMI, and Parabolic SAR to suit their trading style.
- Flexible Timeframes: You can toggle between different timeframes (M15, M30, H1, H4, D1) to focus on the intervals most relevant to your strategy.
Ideal For
- Traders looking for a detailed, multi-timeframe trend analysis tool for XAUUSD.
- Traders who rely on trend-following strategies and need confirmation across multiple timeframes.
- Those who prefer a multi-indicator approach to avoid false signals and improve the accuracy of their trades.
Disclaimer
This indicator is for informational and educational purposes only. It is recommended to combine this with proper risk management strategies and your own analysis. Past performance does not guarantee future results. Always perform your own due diligence before making trading decisions.
Stock Rating [TrendX_]# OVERVIEW
This Stock Rating indicator provides a thorough evaluation of a company (NON-FINANCIAL ONLY) ranging from 0 to 5. The rating is the average of six core financial metrics: efficiency, profitability, liquidity, solvency, valuation, and technical ratings. Each metric encompasses several financial measurements to ensure a robust and holistic evaluation of the stock.
## EFFICIENCY METRICS
1. Asset-to-Liability Ratio : Measures a company's ability to cover its liabilities with its assets.
2. Equity-to-Liability Ratio : Indicates the proportion of equity used to finance the company relative to liabilities.
3. Net Margin : Shows the percentage of revenue that translates into profit.
4. Operating Expense : Reflects the costs required for normal business operations.
5. Operating Expense Ratio : Compares operating expenses to total revenue.
6. Operating Profit Ratio : Measures operating profit as a percentage of revenue.
7. PE to Industry Relative PE/PB : Compares the company's PE ratio to the industry average.
## PROFITABILITY METRICS
1. ROA : Indicates how efficiently a company uses its assets to generate profit.
2. ROE : Measures profitability relative to shareholders' equity.
3. EBITDA : Reflects a company's operational profitability.
4. Free Cash Flow Margin : Shows the percentage of revenue that remains as free cash flow.
5. Revenue Growth : Measures the percentage increase in revenue over a period.
6. Gross Margin : Reflects the percentage of revenue exceeding the cost of goods sold.
7. Net Margin : Percentage of revenue that is net profit.
8. Operating Margin : Measures the percentage of revenue that is operating profit.
## LIQUIDITY METRICS
1. Current Ratio : Indicates the ability to cover short-term obligations with short-term assets.
2. Interest Coverage Ratio : Measures the ability to pay interest on outstanding debt.
3. Debt-to-EBITDA : Compares total debt to EBITDA.
4. Debt-to-Equity Ratio : Indicates the relative proportion of debt and equity financing.
## SOLVENCY METRICS
1. Altman Z-score : Predicts bankruptcy risk
2. Beneish M-score : Detects earnings manipulation.
3. Fulmer H-factor : Predicts business failure risk.
## VALUATION METRICS
1. Industry Relative PE/PB Comparison : Compares the company's PE and PB ratios to industry averages.
2. Momentum of PE, PB, and EV/EBITDA Multiples : Tracks the trends of PE, PB, and EV/EBITDA ratios over time.
## TECHNICAL METRICS
1. Relative Strength Index (RSI) : Measures the speed and change of price movements.
2. Supertrend : Trend-following indicator that identifies market trends.
3. Moving Average Golden-Cross : Occurs when a short-term MA crosses above mid-term and long-term MA which are determined by half-PI increment in smoothing period.
4. On-Balance Volume Golden-Cross : Measures cumulative buying and selling pressure.
Simplified MA Crossover indicatorThis is my first script, it is really simple logic and you probably saw something similar before. Is a crossover indicator between 2 Moving Average, one fast MA and the second slow MA.
Inputs you can adjust:
- 8 different source of MA's
- lenght of the MA's
- 7 different types of MA's ("EMA", "SMA", "RMA", "WMA", "DEMA", "TEMA", "HMA")
- 3 smoothing level of the fast MA
- plotting fast MA into the chart
- plotting crossover triangle shapes
I really enjoed the creation of this simple concept indicator, maybe not the fastest because of his nature but I liked work on it. I am sure is a good base to improve, study and try new idea.
Forex Multi-Factor IndicatorMoving Averages (MA):
Two moving averages are plotted on the chart: a fast MA (blue line) and a slow MA (red line).
The fast MA is calculated using a shorter period (10 periods by default), while the slow MA is calculated using a longer period (30 periods by default).
Moving averages help identify trends by smoothing out price fluctuations. When the fast MA crosses above the slow MA, it suggests a bullish trend, and when the fast MA crosses below the slow MA, it suggests a bearish trend.
Relative Strength Index (RSI):
The RSI indicator (orange line) is plotted on a separate axis.
RSI measures the speed and change of price movements and oscillates between 0 and 100.
RSI values above 70 are considered overbought, indicating a potential reversal to the downside, while RSI values below 30 are considered oversold, indicating a potential reversal to the upside.
Volume Moving Average (Volume MA):
The volume moving average (purple line) is plotted on the same axis as the volume.
The volume moving average is calculated over a specified period (20 periods by default).
Volume analysis provides insights into the strength of price movements. When the volume increases along with price movements, it suggests strong conviction from traders.
Buy and Sell Signals:
Buy signals (green triangle) are generated when all of the following conditions are met:
The fast MA crosses above the slow MA (indicating a bullish trend).
The RSI is below the oversold level (indicating potential upward momentum).
The current price is above the fast MA, and the volume is higher than the volume MA (indicating positive volume trend).
Sell signals (red triangle) are generated when all of the following conditions are met:
The fast MA crosses below the slow MA (indicating a bearish trend).
The RSI is above the overbought level (indicating potential downward momentum).
The current price is below the fast MA, and the volume is lower than the volume MA (indicating negative volume trend).
Overall, this multi-factor indicator combines moving averages, RSI, and volume analysis to identify potential buying and selling opportunities in the Forex market. Traders can use the signals generated by this indicator as part of their trading strategy, but it's important to consider other factors such as risk management and market conditions before making trading decisions
QuantBot 3:Ultimate MA CrossoverTHIS IS A SAMPLE CODE TO AUTOMATE WITH QUANTBOT
The moving average strategy is a popular and widely used technique in financial analysis and trading. It involves the calculation and analysis of moving averages, which are mathematical indicators that smooth out price data over a specified period. This strategy is primarily applied in the context of stock trading, but it can be used for other financial instruments as well.
The concept behind the moving average strategy is to identify trends and potential entry or exit points in the market. By calculating and analyzing moving averages of different timeframes, traders aim to capture the overall direction of the price movement and filter out short-term fluctuations or noise.
To implement the moving average strategy, a trader typically selects two or more moving averages with different periods. The most common combinations include the 50-day and 200-day moving averages. The shorter-term moving average is considered more reactive to price changes, while the longer-term moving average provides a smoother trend line. When the shorter-term moving average crosses above the longer-term moving average, it generates a buy signal, indicating a potential upward trend. Conversely, when the shorter-term moving average crosses below the longer-term moving average, it generates a sell signal, indicating a potential downward trend.
Traders can use various variations of the moving average strategy based on their trading objectives and risk tolerance. For instance, some traders may prefer to use exponential moving averages (EMAs) instead of simple moving averages (SMAs) to give more weight to recent price data. Others may incorporate additional indicators or filters to confirm signals or avoid false signals.
One of the strengths of the moving average strategy is its simplicity and ease of interpretation. It provides a clear visual representation of the trend direction and potential entry or exit points. However, it's important to note that the moving average strategy is a lagging indicator, meaning that it relies on past price data. Therefore, it may not always accurately predict future market movements or capture sudden reversals.
Like any trading strategy, the moving average strategy is not foolproof and carries risks. It is crucial for traders to conduct thorough analysis, consider other relevant factors, and manage their risk through proper position sizing and risk management techniques. Additionally, it's important to adapt the strategy to specific market conditions and combine it with other complementary strategies or indicators for improved decision-making.
Overall, the moving average strategy serves as a valuable tool for traders to identify and follow trends in financial markets, aiding in the analysis of price movements and potential trading opportunities.
TCG AI ToolsIntroduction:
This script is a result of an AI recommended created trading strategy that is design to offer new traders’ easy access to trend information and oversold/overbought conditions. Here we have combined commonly used indicators into a single unique visualization that quickly identifies trend changes and both RSI and Bollinger Band based overbought and oversold conditions, and allows all three indicators to be used simultaneously while taking up limited space on the chart.
The value in combining these three indicators is found in the harmony and clarity they are able to provide new traders. Trend changes can be difficult to identify based solely on candlestick analysis, therefore using the moving averages allows the trader to simplify the process of establishing bullish or bearish trends. Once a trend is established it can be very attractive for new traders to establish entries at the wrong time. For this reason, it is useful to include two different overbought and oversold indicators. The Bollinger Bands are included as one of the methods for establishing extreme prices that often result in reversals, and the relative strength index is similarly utilized as a second means to warn traders of extreme conditions.
Using the Indicator
1. MA10 MA20 Trend Indicator
The large red/green horizontal bar located at the 0 line on the X axis is the trend direction indicator. This visualization compares the 10 and 20 period moving averages to establish trend. When the MA10 is above the MA20 the trend is considered bullish and supportive of long positions and indicates such by changing the color of the horizontal bar to green. When the MA10 is below MA20 the trend is considered bearish and indicates such by changing the color of the horizontal bar to red. Color changes occur at the moment of a MA crossover/under.
2. Relative Strength Index.
The vertical red and green bars that make up the background of the panel indicate conditions wherein the RSI is considered overbought or oversold. When the vertical bar is red it indicates that RSI is below 30 suggesting that current conditions are oversold and supportive of long entries. When the vertical bar is green it suggests that the current conditions are overbought and are supportive of short entries.
3. Bollinger Band Extremes
Within the horizontal red/green bar there are red and green arrows. These arrows represent periods where the price is exceeding the upper or lower Bollinger bands and indicate overbought/oversold conditions. When a green arrow appears, it indicates that the price has crossed below the lower BB and is supportive of long entries. If a red arrow appears it indicates that the price has crossed above the upper Bollinger band and conditions are supportive of short entries.
RSI + rCalcThis is a modification of the TradingView RSI.
I have added HMA and ALMA options to the MA settings and also the option for a colour change on RSI cross.
A reverse calc has also been added. This will display the MA cross/Overbought/Oversold price predictions. There is also the option to display an entered RSI or Price for a prediction display.
All colours and modifications can be turned on/off.
Enjoy! :)
Glow-NodeThis indicator uses multiple different indicators in confluence to identify the direction of the trend, pullback zones, accurate entry points and even exit points to give you a simpler trading experience!
Colour Changing Candles
Our first focus was to identify the direction of the trend so we created an indicator to do just that. Instead of having lots of indicators covering your screen we have set the candles to change colour when the trend changes direction! This means you can focus on taking buy trades when the candles are blue and sell trades when the candles are purple.
Glow Cloud
Our unique cloud works as a support and resistance zone, as well as giving you additional confirmation of the direction of the trend. When the price is above the cloud we’re in a buying market and when the price is below the cloud we’re in a selling market. We can also use breakouts and retests of the cloud to find good trade ideas.
Integrated Volume Indicators
Our volume indicators are working hard in the background to give us a better understanding of the market bias. Although you cannot see the indicators, they are used in confluence with the rest of the features to give us more accurate signals. You can also see whether the volume indicates bullish or bearish momentum using the confirmation table.
Main Signals
Our main signals work best between the 15m-4h timeframes. This feature will send you trading signals based on a few different strategies including MA crossovers. Glow Node will only send the signal when all of the confirmations align, giving you an extremely accurate trade set up. The confirmations consist of the market being in an uptrend, bullish volume, above the cloud and then a cross over signal with our secret tool for a buy trade and vice versa for a sell trade.
Scalping Signals
We know how much you all love scalping! When you drop to a 5 minute timeframe or lower, the main signals disappear and you will only be able to see the scalping signals. The scalping signals are triggered when the market pulls back to the cloud and rejects it meaning you can catch all the pullbacks and continuation as you trade with the trend! We’re honestly extremely excited about this feature!
Confirmation Table
Our confirmation table will tell you if all of the features above are in confluence with each other giving you great trading opportunities. It will also show you what direction the market is trending on higher timeframes. This means you can trade with a higher timeframe trend without having to change your screen. You also don’t have to put lots of effort into adding more confirmations if you miss a signal you can use your own strategy and the confirmations from this table to create your own trade ideas.
Stop Loss Indicators
Stop losses are always a topic of conversation when it comes to trading, do you place your stop loss below the previous low? Previous candle? Below a moving average? There’s so much confusion when it comes to where to put your stop loss so we added 2 different stop loss features which you can decide between. We are always optimising our stop loss settings with the current market conditions so that you can take less losing trades and focus more on winners!
MA VisualizerThe MA Visualizer is made up of 5 Moving Averages (MA)
All MA change color when the price closes above or below the MA line.
The background between the MA line and price will also change color, this creates the Visualizer.
When two or more MA are selected the two visualizer's will combine and create a gradient effect.
Each MA can be adjusted with 6 source selection's to choose from (SMA , EMA , WMA , HMA , RMA , WVMA).
The Visualizer can be turned off while leaving the MA lines turned on and vice versa.
Their is also a MA Cross indicator built-in.
Portfolio Backtester Engine█ OVERVIEW
Portfolio Backtester Engine (PBTE). This tool will allow you to backtest strategies across multiple securities at once. Allowing you to easier understand if your strategy is robust. If you are familiar with the PineCoders backtesting engine , then you will find this indicator pleasant to work with as it is an adaptation based on that work. Much of the functionality has been kept the same, or enhanced, with some minor adjustments I made on the account of creating a more subjectively intuitive tool.
█ HISTORY
The original purpose of the backtesting engine (`BTE`) was to bridge the gap between strategies and studies . Previously, strategies did not contain the ability to send alerts, but were necessary for backtesting. Studies on the other hand were necessary for sending alerts, but could not provide backtesting results . Often, traders would have to manage two separate Pine scripts to take advantage of each feature, this was less than ideal.
The `BTE` published by PineCoders offered a solution to this issue by generating backtesting results under the context of a study(). This allowed traders to backtest their strategy and simultaneously generate alerts for automated trading, thus eliminating the need for a separate strategy() script (though, even converting the engine to a strategy was made simple by the PineCoders!).
Fast forward a couple years and PineScript evolved beyond these issues and alerts were introduced into strategies. The BTE was not quite as necessary anymore, but is still extremely useful as it contains extra features and data not found under the strategy() context. Below is an excerpt of features contained by the BTE:
"""
More than `40` built-in strategies,
Customizable components,
Coupling with your own external indicator,
Simple conversion from Study to Strategy modes,
Post-Exit analysis to search for alternate trade outcomes,
Use of the Data Window to show detailed bar by bar trade information and global statistics, including some not provided by TV backtesting,
Plotting of reminders and generation of alerts on in-trade events.
"""
Before I go any further, I want to be clear that the BTE is STILL a good tool and it is STILL very useful. The Portfolio Backtesting Engine I am introducing is only a tangental advancement and not to be confused as a replacement, this tool would not have been possible without the `BTE`.
█ THE PROBLEM
Most strategies built in Pine are limited by one thing. Data. Backtesting should be a rigorous process and researchers should examine the performance of their strategy across all market regimes; that includes, bullish and bearish markets, ranging markets, low volatility and high volatility. Depending on your TV subscription The Pine Engine is limited to 5k-20k historical bars available for backtesting, which can often leave the strategy results wanting. As a general rule of thumb, strategies should be tested across a quantity of historical bars which will allow for at least 100 trades. In many cases, the lack of historical bars available for backtesting and frequency of the strategy signals produces less than 100 trades, rendering your strategy results inconclusive.
█ THE SOLUTION
In order to be confident that we have a robust strategy we must test it across all market regimes and we must have over 100 trades. To do this effectively, researchers can use the Portfolio Backtesting Engine (PBTE).
By testing a strategy across a carefully selected portfolio of securities, researchers can now gather 5k-20k historical bars per security! Currently, the PTBE allows up to 5 securities, which amounts to 25k-100k historical bars.
█ HOW TO USE
1 — Add the indicator to your chart.
• Confirm inputs. These will be the most important initial values which you can change later by clicking the gear icon ⚙ and opening up the settings of the indicator.
2 — Select a portfolio.
• You will want to spend some time carefully selecting a portfolio of securities.
• Each security should be uncorrelated.
• The entire portfolio should contain a mix of different market regimes.
You should understand that strategies generally take advantage of one particular type of market regime. (trending, ranging, low/high volatility)
For example, the default RSI strategy is typically advantageous during ranging markets, whereas a typical moving average crossover strategy is advantageous in trending markets.
If you were to use the standard RSI strategy during a trending market, you might be selling when you should be buying.
Similarily, if you use an SMA crossover during a ranging market, you will find that the MA's may produce many false signals.
Even if you build a strategy that is designed to be used only in a trending market, it is still best to select a portfolio of all market regimes
as you will be able to test how your strategy will perform when the market does something unexpected.
3 — Test a built-in strategy or add your own.
• Navigate to gear icon ⚙ (settings) of strategy.
• Choose your options.
• Select a Main Entry Strat and Alternate Entry Strat .
• If you want to add your own strategy, you will need to modify the source code and follow the built-in example.
• You will only need to generate (buy 1 / sell -1/ neutral 0) signals.
• Select a Filter , by default these are all off.
• Select an Entry Stop - This will be your stop loss placed at the trade entry.
• Select Pyamiding - This will allow you to stack positions. By default this is off.
• Select Hard Exits - You can also think of these as Take Profits.
• Let the strategy run and take note of the display tables results.
• Portfolio - Shows each security.
• The strategy runs on each asset in your portfolio.
• The initial capital is equally distributed across each security.
So if you have 5 securities and a starting capital of 100,000$ then each security will run the strategy starting with 20,000$
The total row will aggregate the results on a bar by bar basis showing the total results of your initial capital.
• Net Profit (NP) - Shows profitability.
• Number of Trades (#T) - Shows # of trades taken during backtesting period.
• Typically will want to see this number greater than 100 on the "Total" row.
• Average Trade Length (ATL) - Shows average # of days in a trade.
• Maximum Drawdown (MD ) - Max peak-to-valley equity drawdown during backtesting period.
• This number defines the minimum amount of capital required to trade the system.
• Typically, this shouldn’t be lower than 34% and we will want to allow for at least 50% beyond this number.
• Maximum Loss (ML) - Shows largest loss experienced on a per-trade basis.
• Normally, don’t want to exceed more than 1-2 % of equity.
• Maximum Drawdown Duration (MDD) - The longest duration of a drawdown in equity prior to a new equity peak.
• This number is important to help us psychologically understand how long we can expect to wait for a new peak in account equity.
• Maximum Consecutive Losses (MCL) - The max consecutive losses endured throughout the backtesting period.
• Another important metric for trader psychology, this will help you understand how many losses you should be prepared to handle.
• Profit to Maximum Drawdown (P:MD) - A ratio for the average profit to the maximum drawdown.
• The higher the ratio is, the better. Large profits and small losses contribute to a good PMD.
• This metric allows us to examine the profit with respect to risk.
• Profit Loss Ratio (P:L) - Average profit over the average loss.
• Typically this number should be higher in trend following systems.
• Mean reversion systems show lower values, but compensate with a better win %.
• Percent Winners (% W) - The percentage of winning trades.
• Trend systems will usually have lower win percentages, since statistically the market is only trending roughly 30% of the time.
• Mean reversion systems typically should have a high % W.
• Time Percentage (Time %) - The amount of time that the system has an open position.
• The more time you are in the market, the more you are exposed to market risk, not to mention you could be using that money for something else right?
• Return on Investment (ROI) - Your Net Profit over your initial investment, represented as a percentage.
• You want this number to be positive and high.
• Open Profit (OP) - If the strategy has any open positions, the floating value will be represented here.
• Trading Days (TD) - An important metric showing how many days the strategy was active.
• This is good to know and will be valuable in understanding how long you will need to run this strategy in order to achieve results.
█ FEATURES
These are additional features that extend the original `BTE` features.
- Portfolio backtesting.
- Color coded performance results.
- Circuit Breakers that will stop trading.
- Position reversals on exit. (Simulating the function of always in the market. Similar to strategy.entry functionality)
- Whipsaw Filter
- Moving Average Filter
- Minimum Change Filter
- % Gain Equity Exit
- Popular strategies, (MACD, MA cross, supertrend)
Below are features that were excluded from the original `BTE`
- 2 stage in-trade stops with kick-in rules (This was a subjective decision to remove. I found it to be complex and thwarted my use of the `BTE` for some time.)
- Simple conversion from Study to Strategy modes. (Not possible with multiple securities)
- Coupling with your own external indicator (Not really practical to use with multiple securities, but could be used if signals were generated based on some indicator which was not based on the current chart)
- Use of the Data Window to show detailed bar by bar trade information and global statistics.
- Post Exit Analysis.
- Plotting of reminders and generation of alerts on in-trade events.
- Alerts (These may be added in the future by request when I find the time.)
█ THANKS
The whole PineCoders team for all their shared knowledge and original publication of the BTE and Richard Weismann for his ideas on building robust strategies.
═════════════════════════════════════════════════════════════════════════
TRADE WAR ZONESAbout the Indicator:
This indicator is includes moving average ribbons, signal line, unique price action and support and resistance. I will explain a bit about everything.
Moving average ribbons:
We take 2 inputs from user. One is the length of minimum moving average line and other is length of maximum moving average line. We plot total 8 ema in between these 2 lengths, with equal distribution. User can control the min and max length but he cannot change its color or shade.
Signal Line:
Here different combination of multiple ema’s are used. And its outcome is this signal line. This signal line color tells you the strength of the trend. Darker the color, higher the trend. When the trend changes, color also changes slowly from green to red or vice versa. This signal line is used to identify the trend and its momentum. We take “EMA length” as a input from user. This input is used to calculate signal lines.
Price action:
A Unique price action method is used here , to identify the price momentum. If it indicates the price momentum to be upside then whole candle color will become blue, if it indicates down then candle color becomes red and if it indicates sideways then color becomes black. We don’t take anything as input here. This price action works in any timeframe.
Support and resistance:
We take “Number of candles on left” and “number of candles on right” as input. We take highs and lows of n candle to left and n candle to right. And plot dotter lines. All highs are blue colored dotted line and lows are red colored dotted line. When high or low is broken, a new dotted line starts forming. This helps you to find higher highs and lower lows. And these lines work as support and resistance.
Apart from this you can find green and red colored arrows:
-Whenever signal line crosses above Slow ema , a dark green color arrow below candle is formed
--Whenever signal line crosses below Slow ema , a dark red color arrow above candle is formed
--When ema of (least length MA) crosses above ema of (max length MA) , a light green color arrow below candle is formed
--When ema of (least length MA) crosses below ema of (max length MA) , a light red color above below candle is formed
MA Cloud with FillMA Cloud with Fill
This is a powerful custom indicator that uses 3 Moving Averages with a 4th Constant 200 MA (can be customized)
This tells you what the market is doing, and what the overall trend of the market is. A good Swing trade or Day trade indicator.
This indicator works on all markets , it was made and based off of normal candles but heiken ashi works fine, it does not repaint and the recommendations for the indicator is as follows..
Best timeframes to use: 5min, 15min, and 1hr. But any timeframe can be used.
Best settings: the preset settings are what I recommend, depending on trading strategy (I swing trade) you can remove the Buy and Sell labels and just use the strong signal and trend confirmations to make the best trades.
Alternate recommended settings are in the settings tab of the indicator. The slashes represent different settings you can adjust to..
(Example:)
Fast MA: 10/20/30
Mid MA: 12/25/35
Slow MA: 50/60/70
Use 10,12,50 together... use 20,25,60 together... use 30,35,70 together.. etc...
There are multiple labels and reading them correctly takes an experienced eye. This will be updated continuously to filter bad signals or to add strong signals!
Buy and Sell signals are good entry or exit points depending on the overall trend.
These occur when the Fast MA crosses over(BUY) or under(SELL) the Mid MA
They can alert when a trend may reverse or a good take profit point or a good place for a new stop loss if trend continues.
The BEST Buy and Sell Signals are when the...
BUY is in the fill (between fast ma and slow ma) or above fast MA
SELL is in the fill (between fast ma and slow ma) or below the slow MA
Strong Buy and Strong Sell signals are even better but more swing trading entry points
These occur when the Fast MA(lime) crosses over(BUY) and the close is over the Fast MA or under(SELL) the Slow MA and close is under the Slow MA
These Strong labels are showing a trend change in the market for the timeframe you are looking at.
The General Bullish and Bearish signals are some of the best signals and show a confirmed trend in the market. These can be effective to trade on alone, otherwise good for confirming a position.
These occur when the Fast MA crosses over (BULLISH) the constant MA (200) or under (BEARISH) the constant MA (200)
The Strong Bullish and Bearish signals are the strongest signals for this indicator.
These occur when the Fast MA crosses over (BULLISH) the constant MA (200) and the close is over the Fast MA or under (BEARISH) the constant MA (200) and the close is under the Slow MA.
Background colors of aqua and red are showing the same general bullish or bearish signals, and can be effective if you want to see that trend change without having the labels showing up.
There are settings available to color the bars depending on the trend.
Green if Fast MA is over the Slow MA and the close is above the Fast MA
Red if the Slow MA is over the FAST MA and the close is under the Slow MA
Gray is when the close is opposite of the trend and between the fill
Purple is when the close is opposite of the trend and is Below the opposite corresponding MA (Above Fast MA when bearish, Below Slow MA when Bullish)
You can also change the fill color between the Fast and Slow MA which colors the fill the same as bar colors but the purple will be a light shade of black in the fill.
There are also Pivot Labels and Alternative Tops and Bottoms signals which are betting opposite of the indicators and can be useful for daytrades to see potential reversals. These are very risky and not recommended to trade on .
These are more for seeing if your trend is holding strong or if there could be a potential reversal in the next few bars if you are looking to exit.
Updates are always being made and I'm betting some of you will be able to find even better stronger settings to put in. The recommended settings are just what I personally have noticed that works best, but all inputs can be customized!
Safe Trading Strategy:
Go to settings and uncheck the buy and sell signals.
(up to you) uncheck the strong buy and strong sell signals.
You will be left with the bullish and bearish signals of both general and strong and these have proven to be some of the strongest trades to take.
If you keep the strong buy and strong sell, these can be good to enter a new position or exit a previous position, depending if bullish or bearish trend confirms but some of these can be false overall trend signals and I do recommend using a different indicator to confirm the reversal or confirmation (RSI, MacD, etc..)
Want to use this indicator or wondering how to add to your chart? DM me or join the link in my profile to get a glimpse at what is all available!
We are all in this together and the more one gains, the more we all succeed!
% Sensitivity MA Cross [racer8]This is my third published indicator on % Sensitivity MA, if you're not familiar with it, go check out my first one.
This time its a cross between 2 % Sensitivity MAs.






















